package com.designmodel.atcion.observer;

/**
 * 观察者模式
 *
 * @author think
 * @version 1.0.0
 * @since 2020/4/22
 */
public class ObserverTest {

    public static void main(String[] args) {
        Subject sub = new MySubject();
        sub.add(new Observer1());
        sub.add(new Observer2());

        sub.operation();
    }
}
